<template>
  <el-form :model="formData" class="form" label-width="120px">
    
     
      <el-form-item label="类型">
        <el-radio-group v-model="formData.type">
          <el-radio label="首页" />
          <el-radio label="菜单" />
          <el-radio label="按钮" />
        </el-radio-group>
      </el-form-item>
      <el-form-item label="名称">
        <el-input v-model="formData.title" />
      </el-form-item>
        <el-form-item label="路径">
        <el-input v-model="formData.path" />
      </el-form-item>
      <el-form-item label="是否可见">
        <el-radio-group v-model="formData.visible">
          <el-radio label="是" />
          <el-radio label="否" />
        </el-radio-group>
      </el-form-item>
      <el-form-item label="状态">
        <el-radio-group v-model="formData.state">
          <el-radio label="启用" />
          <el-radio label="停用" />
        </el-radio-group>
      </el-form-item>
    
    <el-form-item label="图标">
     <el-input v-model="formData.icon" />
    </el-form-item>

    <el-form-item label="备注">
      <el-input v-model="formData.desc" type="textarea" />
    </el-form-item>
  </el-form>
</template>

<script setup>

import { onMounted, reactive, watch } from "vue";
const props = defineProps({
  formData:Object
})

</script>

<style lang="scss" scoped>
.item {
  
  display: flex;
 
  align-items: center;
}
.form {
  &:deep(.el-input) {
     min-width: 250px;
     margin-right: 300px;
  }
  &:deep(.el-radio-group) {
    min-width: 250px;
    margin-right: 300px;
  }
}

</style>
